<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<logic:notPresent name="connectors">
No database connectors configured.
</logic:notPresent>

<form method=POST action=<html:rewrite page="/dbconfig.do"/> >
<logic:present name="connectors">
List of database connectors in this system:

<table width="85%" border="0" cellpadding="5" cellspacing="1" bgcolor="#3399CC" class="text">

<logic:iterate scope="request" name="connectors" id="connector">

<tr bgcolor="#FFFFFF"><td>
<html:link page="/dbconfig.do?mode=edit" paramName="connector" paramProperty="name" paramId="name">
<bean:write name="connector" property="name"/>
</html:link>
</td><td>
<input type=checkbox name=selconn value=<bean:write name="connector" property="name"/> />
</td></tr>
</logic:iterate>
</table>
<input type="submit" class="butonsave" name="delete" value="Delete Selected"/>
<input type="submit" class="butonsave" name="current" value="Set current"/>

</logic:present>
<input type='button' class='butonsave' onclick=javascript:window.location.href='<html:rewrite page="/dbconfig.do?mode=new"/>' value='Add New'/>
<input type="submit" class="butonsave" name="logout" value="Logout dbconfig"/>
</form>

<p>
<b>Current connector: <font color="blue"><bean:write name="current"/></font></b>
<br><font color="red">Restart web server for changes to take effect</font>
